module Rosarla
	# Give: (Optional) Command to be executed with each file
	# Expect: nil
	def self.sass(given_command = " --style compressed")
		
		the_path = "./assetsBuild/styles/"
		the_end_path = "./assets/"
		the_files = self.get_files(the_path)
		
		(the_files).each do |this_file|
			this_output = %x(sass #{this_file}#{given_command})
			renamed_file = this_file.gsub("sass", "css")
			this_target = self.c_loc(renamed_file, the_path, the_end_path)
			self.write(this_target, this_output)
		end
		
	end
	
end